package com.hoshiibuy.sku.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 平台商品表SKU
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ext_sku")
public class ExtSku implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
    * spuid
    */
    @TableField("spuid")
    private Long spuid;


    /**
    * skuid
    */
    @TableField("skuid")
    private Long skuid;


    /**
    * 
    */
    @TableField("sku_title")
    private String skuTitle;


    /**
    * 售价
    */
    @TableField("sale_price")
    private BigDecimal salePrice;


    /**
    * 市场价
    */
    @TableField("maket_price")
    private BigDecimal maketPrice;


    /**
    * 成本价
    */
    @TableField("cost_price")
    private BigDecimal costPrice;


    /**
    * 供应商
    */
    @TableField("vendor_id")
    private Long vendorId;


    /**
    * sku图片
    */
    @TableField("sku_image")
    private String skuImage;


    /**
    * 属性
    */
    @TableField("extend_property")
    private String extendProperty;


    /**
    * 规格
    */
    @TableField("extend_spec")
    private String extendSpec;


    /**
    * 采购策略  1-自定供应商 2-自动派单，采购价优先库存需足额 2-自动派单-采购价优先库存额不足
    */
    @TableField("po_policy")
    private Integer poPolicy;


    /**
    * 1-中央仓优先  2-中央仓发货 3-一件贷发 4-商城负责发获
    */
    @TableField("dispatch_policy")
    private Integer dispatchPolicy;


    /**
    * 创建时间
    */
    @TableField("createdtime")
    private LocalDateTime createdtime;


    /**
    * 修改时间
    */
    @TableField("updatedtime")
    private LocalDateTime updatedtime;


    /**
    * 建立人
    */
    @TableField("createdby")
    private String createdby;


    /**
    * 修改人
    */
    @TableField("updatedby")
    private String updatedby;


    /**
    * 状态  0-待审批 1-审批未过 2-已上架 3-已下架
    */
    @TableField("status")
    private Integer status;


    /**
    * 是否删除
    */
    @TableField("deleted")
    private Integer deleted;



}
